package com.huawei.entity;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName Sppinglun
 * @Description TODO
 * @Author 闫修奇
 * @Date 2021/11/30 17:51
 */
public class Sppinglun {
    private  int id;
    private  int user_id;
    private  int shangpin_id;
    private  String pinglun_dengji;
    private  String content;
    private  String huifu;
    private  String is_staff;
    private  String sp_status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date create_time;

private Shangpinspu shangpinspus;

    public Shangpinspu getShangpinspus() {
        return shangpinspus;
    }

    public void setShangpinspus(Shangpinspu shangpinspus) {
        this.shangpinspus = shangpinspus;
    }

    private User users;
    private  Manager managers;

    public Sppinglun(int id) {
        this.id = id;
    }

    public Manager getManagers() {
        return managers;
    }

    public void setManagers(Manager managers) {
        this.managers = managers;
    }


    public User getUsers() {
        return users;
    }

    public void setUsers(User users) {
        this.users = users;
    }

    public String getHuifu() {
        return huifu;
    }

    public void setHuifu(String huifu) {
        this.huifu = huifu;
    }

    public Sppinglun(int id, int user_id, int shangpin_id, String pinglun_dengji, String content, String is_staff, String sp_status, Date create_time) {
        this.id = id;
        this.user_id = user_id;
        this.shangpin_id = shangpin_id;
        this.pinglun_dengji = pinglun_dengji;
        this.content = content;
        this.is_staff = is_staff;
        this.sp_status = sp_status;
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        return "Sppinglun{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", shangpin_id=" + shangpin_id +
                ", pinglun_dengji='" + pinglun_dengji + '\'' +
                ", content='" + content + '\'' +
                ", is_staff='" + is_staff + '\'' +
                ", sp_status='" + sp_status + '\'' +
                ", create_time=" + create_time +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getShangpin_id() {
        return shangpin_id;
    }

    public void setShangpin_id(int shangpin_id) {
        this.shangpin_id = shangpin_id;
    }

    public String getPinglun_dengji() {
        return pinglun_dengji;
    }

    public void setPinglun_dengji(String pinglun_dengji) {
        this.pinglun_dengji = pinglun_dengji;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getIs_staff() {
        return is_staff;
    }

    public void setIs_staff(String is_staff) {
        this.is_staff = is_staff;
    }

    public String getSp_status() {
        return sp_status;
    }

    public void setSp_status(String sp_status) {
        this.sp_status = sp_status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Sppinglun() {
    }

}
